package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksRefundsDO;
import com.starlink.model.request.MallBooksRefundsRequest;
import com.starlink.model.vo.MallBooksRefundsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksRefundsDtoMapper {

    MallBooksRefundsDtoMapper INSTANCE = Mappers.getMapper(MallBooksRefundsDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksRefundsDO
    * @return
    */
    MallBooksRefundsVO do2VO(MallBooksRefundsDO mallBooksRefundsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksRefundsDO request2DO(MallBooksRefundsRequest request);
}
